import request from '@/utils/request';

// 获取主订单基础信息
export function OrderInfo(orderId) {
	return request({
		url: `/change/orderChange/orderInfo/${orderId}`,
		method: 'get',
	});
}
// 合同变更记录列表
export function OrderChangeList(params) {
	return request({
		url: `/change/orderChange/list`,
		method: 'get',
		params,
	});
}
// 合同变更记录详细信息
export function OrderChangeDetail(params) {
	return request({
		url: `/change/orderChange/changeInfo/${orderChangeId}`,
		method: 'get',
		params,
	});
}
// 获（通用）合同变更审批记录列表
export function OrderChangeAuditLog(params) {
	return request({
		url: `/change/orderChangeAuditLog/list`,
		method: 'get',
		params,
	});
}
// 提交
export function OrderChangeSubmit(data) {
	return request({
		url: `/change/orderChange/submit`,
		method: 'get',
		data,
	});
}

// 合同变更记录列表
export function OrderChangeHistory(params) {
	return request({
		url: `/change/orderChange/list`,
		method: 'get',
		params,
	});
}
